package com.yuan.esdemo.dao;

import com.yuan.esdemo.entity.Movies;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface MoviesDao extends ElasticsearchRepository<Movies, String> {
    Page<Movies> findByTitle(String title, Pageable pageable);
}
